﻿
using System;
using QFramework;
using UnityEngine;

namespace ProjectSurvival
{
    public abstract class GamePlayObject:ViewController
    {
        protected abstract Collider2D Collider { get; }
        private void OnBecameVisible()
        {
            Collider.enabled = true;
        }

        private void OnBecameInvisible()
        {
            Collider.enabled = false;
        }
    }
}